public class SparseGridNode {
    // Grid occupant
    private Object occupant;
    private int col;
    // link next node
    private SparseGridNode next;

    // Constructer
    public SparseGridNode(Object occ, int col_t, SparseGridNode next_t) {
        occupant = occ;
        col = col_t;
        next = next_t;
    }

    // get and set method for Class
    public Object getOccupant() {
        return occupant;
    }

    public void setOccupant(Object occ) {
        occupant = occ;
    }

    public int getColumn() {
        return col;
    }

    public void setNext(SparseGridNode newNext) {
        next = newNext;
    }

    public SparseGridNode getNext() {
        return next;
    }
}